﻿@section header
{
    <link rel="stylesheet" href="/css/treetable.css" />
}

<blockquote class="layui-elem-quote news_search toolList" id="menus">
</blockquote>
<div class="layui-row">
    <div class="layui-col-xs2">
        <input type="text" name="SearchDate" id="SearchDate" lay-verify="date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">

    </div>
    <div class="layui-col-xs10">
        
    </div>
</div>
        <div class="layui-row">
            <div class="layui-col-xs2">
                <ul id="tree" class="ztree"
                    style="padding: 2px; border: 1px solid #ddd; overflow: auto;"></ul>
            </div>

            <div class="layui-col-xs10" id="contentHtml">

            </div>
        </div>

        <script type="text/html" id="barList">
            <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
        </script>


        <!--添加/编辑窗口-->
        <div id="divEdit" style="display: none;width:90%;" class="center-align">
            <form class="layui-form layui-form-pane" action="" id="formEdit">
                <br />
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">选择用户</label>
                    <div class="layui-input-inline">
                        <select name="UserId" id="UserId" lay-filter="UserId" v-model="UserId" required lay-verify="required"></select>
                    </div>
                </div>
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">内容</label>
                    <div class="layui-input-block">
                        <input type="text" name="Content" v-model="Content" required lay-verify="required"
                               placeholder="内容" autocomplete="off" class="layui-textarea">
                    </div>
                </div>
                <div class="layui-form-item" pane>
                    <label class="layui-form-label">创建日期</label>
                    <div class="layui-input-block">
                        <input type="text" name="CreateTime" id="CreateTime" v-model="CreateTime" lay-verify="date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item" pane>
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block">
                        <input type="text" name="Remark" v-model="Remark"
                               placeholder="备注" autocomplete="off" class="layui-textarea">
                    </div>
                </div>


                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formSubmit">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>

        <script id="tplScript" type="text/html">



            <div style="padding: 20px; background-color: #F2F2F2; overflow-x:scroll; height:2000px">
                <div class="layui-row layui-col-space15">
                    {{# layui.each(d.data, function(index, item){ }}
                    {{#  layui.each(item.data, function(index2, item2){ }}
                    <div class="layui-col-md3">
                        <div class="layui-card">

                            <div class="layui-card-header">{{ item2.UserName }}-<input id="date-{{ item2.UserId }}" name="date-{{ item2.UserId }}" value="{{ item2.CreateDate }}" type="text" class="ddate" style="border:none" /> </div>
                            <div class="layui-card-body">

                                <textarea name="{{ item2.UserId }}" id="content{{ item2.UserId }}" placeholder="请输入内容" rows="10" class="layui-textarea">{{ item2.Content }}</textarea>
                               点评：<textarea name="{{ item2.UserId }}" id="remark{{ item2.UserId }}" placeholder="请输入内容" rows="4" class="layui-textarea">{{ item2.Remark }}</textarea>
                            </div>

                        </div>
                    </div>
                    {{#  }) }}
                    {{#  }) }}

                </div>
            </div>

        </script>
        <script type="text/javascript" src="/layui/layui.js"></script>
        <script src="https://cdn.bootcss.com/html2canvas/0.5.0-beta4/html2canvas.min.js"></script><!--生成图片-->
        <script type="text/javascript" src="/userJs/WorkNotes.js"></script>

